﻿#include<iostream>
#include<locale>
using namespace std;
int main() {
	char str[0xFF]{ 0x48,'e','l','l','o','\0' };//\0=数字0,C语言中的字符串以0结尾
	char str1[0xFF]{ "Hello阿斯蒂芬" };
	char* str2 = (char*)"Hello阿斯蒂芬";//本来"Hello"的类型是const char[]，需要强转为char*
	const char* str3 = "Hello";
	char* str4 = new char[0xFF] {"Hello"};

	cout << str << endl;
	cout << str1 << endl;
	cout << str2 << endl;
	cout << str3 << endl;
	cout << str4 << endl;

	setlocale(LC_ALL, "chs");
	wchar_t wstr[0xFF]{ L"z站" };//加L代表宽字节
	wcout << wstr << endl;
	for (int x = 0; wstr[x]; x++)
		cout << hex << wstr[x] << endl;

	char16_t char16{ u'a' };//utf-16
	char32_t char32{ U'a' };//utf-32
}